﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Workshop
{
    public partial class FormHeadPixel : Form
    {
        public FormHeadPixel()
        {
            InitializeComponent();
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void FormHeadPixel_Load(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void btnGo_Click(object sender, EventArgs e)
        {
            if (radioPD.Checked)        //check the PD radio is click or not
            {
                string name = "PD";     // if PD is clicked 
                FormLogin login = new FormLogin(name);      //pass the parameter "PD" to another page
                login.Show();
                this.Hide();
            }
            else
            {
                string name = "TA";     //if TA is clicked 
                FormLogin login = new FormLogin(name);      //jump to another page 
                login.Show();
                this.Hide();
            }
        }

        private void radioPD_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

            radioTA.Checked = true;
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            radioPD.Checked = true;
        }
    }
}
